#!/usr/bin/env python
# -*- coding: utf-8 -*-

import json
import requests


JSON_CONF_URL = ''


def get_json_conf():
    res = requests.get(JSON_CONF_URL)
    if res.status_code in (404, 505):return
    try:
        conf = json.loads(res.text)
        return conf
    except:
        return


def read_json_file():
    fobj = open('config.json', 'r')
    text = fobj.read()
    fobj.close()
    conf = json.loads(text)
    return conf